/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.wpi.first.wpilibj.templates.subsystems;

import edu.wpi.first.wpilibj.Compressor;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.templates.RobotMap;
import edu.wpi.first.wpilibj.templates.commands.CompressorRunAuto;

/**
 *
 * @author Roksbot
 */
public class CompressorSub extends Subsystem {
    Compressor compressor;

    public void initDefaultCommand() {
        setDefaultCommand((new CompressorRunAuto()));
    }
    public CompressorSub(){
        compressor = new Compressor(RobotMap.sensorPort, RobotMap.relayPort);
        
    }
    public void compressorRun(){
        compressor.enabled();
    }
}
